//
//  PSHashSet.h
//  PrefCore
//
//  Created by Sergey on 5/12/14.
//  Copyright (c) 2014 Play-on-smart. All rights reserved.
//

#import <Foundation/Foundation.h>

#define PS_HASH_BUCKET_COUNT ((uint32_t)65536)
#define PS_NO_HASH_BUCKET ((uint32_t)-1)

@class PSNode;

@interface PSHashSet : NSObject

/// Clears the hash set.
-(void)clear;

/// Adds a node to the hash set.
-(void)put:(PSNode*)node;

/// Gets a node from the hash set.
-(PSNode*)get:(PSNode*)key;

/// Removes a specified node from the hash set.
-(void)remove:(PSNode*)node;

@end
